Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
Data Structures


Bounding Boxes

A bounding box is a rectangular box, aligned with the coordinate axes, that completely encloses an object. A bounding box is defined by the TQ3BoundingBox data type.

typedef struct TQ3BoundingBox {
   TQ3Point3D                 min;
   TQ3Point3D                 max;
   TQ3Boolean                 isEmpty;
} TQ3BoundingBox;
Field Description
min
The lower-left corner of the bounding box.
max
The upper-right corner of the bounding box.
isEmpty
A Boolean value that specifies whether the bounding box is empty (kQ3True) or not (kQ3False). If this field contains the value kQ3True, the other field of this structure are invalid.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996